<?php
 include_once('../classes/class.edit.owner.php');
    
  session_start();
    
  if (isset($_POST['editOwner']))
  { 
    $editOwner = new EditOwner();  
    if($editOwner->process())
    {
     echo "<script>loadOwners();</script>";   
     echo "<script>alert('Propietario se ha modificado satisfactoriamente');</script>";
    }else
       {
        echo '<p class="error">';
        echo '<b>'.$editOwner->show_errors().'</b>'; 
        echo '</p>';    
       }
  }
?>
